package design.decorator;

/**
 * ClassName:Decorator <br/>
 * description:  <br/>
 * Date:     2019/4/22、15:32 <br/>
 *
 * @author Plank
 */
public class Decorator implements SourceAble{
    private Source source;

    public Decorator(Source source) {
        this.source = source;
    }

    @Override
    public void t() {
        System.out.println("Decoratory start");
        source.t();
        System.out.println("Decoratory end");
    }
}
